﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
using System.Collections;
using System.Threading;
using System.Globalization;

public partial class NewPublisher : System.Web.UI.Page
{
   
    protected void Page_Load(object sender, EventArgs e)
    {
        if (!IsPostBack)
        {

            
         


        }
        else
        {

        }
    }
    public string GetLoc(string s)
    {
      return this.GetLocalResourceObject(s).ToString();

    }
    public string  getLink(string type , int id )
    {
        if (type == "publisher")
        {
            return "~/NewPublisher.aspx?poid=" + id.ToString();
        }
        else if (type == "distributer")
        {
            return "~/Newdistributer.aspx?poid=" + id.ToString();
        }
        else if (type == "product")
        {
            return "~/NewProduct.aspx?poid=" + id.ToString();
        }
        else
            return "";
    }
    protected override void InitializeCulture()
    {
        if (Session["CurrentCulture"] != null)
        {
            string lang = Session["CurrentCulture"].ToString();
            if (lang != null && lang != "")
            {
                Thread.CurrentThread.CurrentUICulture = new CultureInfo(lang);
                Thread.CurrentThread.CurrentCulture = CultureInfo.CreateSpecificCulture(lang);
                

            }
        }

    }


    protected void SqlDataSource3_Deleted(object sender, SqlDataSourceStatusEventArgs e)
    {

        DB.setpendingobjectscash();
    }
}
